package com.ruoyi.order.clients;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.order.clients.impl.CouponFeignCliestimpl;
import com.ruoyi.order.domain.TbCoupon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "ruoyi-coupon",fallback = CouponFeignCliestimpl.class)
public interface CouponFeignCliest {

    @GetMapping("coupon/findcouponById")
    public TbCoupon findcouponById(@RequestParam("id")  Long id);
}
